<?php /* Smarty version Smarty-3.1.8, created on 2019-07-16 20:15:32
         compiled from "/Users/aron/GitRepos/PHPBroShop/broshop/admin/views/default/article/index.html" */ ?>
<?php /*%%SmartyHeaderCode:1371724465d2dbfe4adc5e1-22813186%%*/if(!defined('SMARTY_DIR')) exit('no direct access allowed');
$_valid = $_smarty_tpl->decodeProperties(array (
  'file_dependency' => 
  array (
    '97846f7e6d2cc93173708a27afe66ff4b0eb6fdd' => 
    array (
      0 => '/Users/aron/GitRepos/PHPBroShop/broshop/admin/views/default/article/index.html',
      1 => 1450315310,
      2 => 'file',
    ),
  ),
  'nocache_hash' => '1371724465d2dbfe4adc5e1-22813186',
  'function' => 
  array (
  ),
  'variables' => 
  array (
    'title' => 0,
    'url' => 0,
    'where' => 0,
    'aclass' => 0,
    'v' => 0,
    'data' => 0,
    'root' => 0,
    'fcat' => 0,
    'fpage' => 0,
  ),
  'has_nocache_code' => false,
  'version' => 'Smarty-3.1.8',
  'unifunc' => 'content_5d2dbfe4bd7475_75695165',
),false); /*/%%SmartyHeaderCode%%*/?>
<?php if ($_valid && !is_callable('content_5d2dbfe4bd7475_75695165')) {function content_5d2dbfe4bd7475_75695165($_smarty_tpl) {?><?php if (!is_callable('smarty_modifier_date_format')) include '/Users/aron/GitRepos/PHPBroShop/broshop/brophp/libs/plugins/modifier.date_format.php';
?><?php echo $_smarty_tpl->getSubTemplate ("public/header.html", $_smarty_tpl->cache_id, $_smarty_tpl->compile_id, null, null, array(), 0);?>

<div class="right">
	<div class="now">
		<div class="now_l"></div>
		<div class="now_m">
			<span class="fl"><?php echo $_smarty_tpl->tpl_vars['title']->value;?>
</span>
			<span class="fr fabu"><a href="<?php echo $_smarty_tpl->tpl_vars['url']->value;?>
&a=add">发布文章</a></span>
		</div>
		<div class="now_r"></div>
		<div class="clear"></div>
	</div>
	<div class="search">
		<div class="fr searbox">
			<form method="get">
				<input type="hidden" name="m" value="article" />
				文章名称：<input type="text" name="name" value="<?php echo $_smarty_tpl->tpl_vars['where']->value['name'];?>
" class="inputtext inputtext_200" />
			
				<select name="cid" class="inputselect">
					<option value="0">全部分类</option>
					<?php  $_smarty_tpl->tpl_vars['v'] = new Smarty_Variable; $_smarty_tpl->tpl_vars['v']->_loop = false;
 $_from = $_smarty_tpl->tpl_vars['aclass']->value; if (!is_array($_from) && !is_object($_from)) { settype($_from, 'array');}
foreach ($_from as $_smarty_tpl->tpl_vars['v']->key => $_smarty_tpl->tpl_vars['v']->value){
$_smarty_tpl->tpl_vars['v']->_loop = true;
?>
					<option <?php if ($_smarty_tpl->tpl_vars['where']->value['cid']==$_smarty_tpl->tpl_vars['v']->value['id']){?> selected <?php }?> value="<?php echo $_smarty_tpl->tpl_vars['v']->value['id'];?>
" ><?php echo $_smarty_tpl->tpl_vars['v']->value['catname'];?>
</option>
					<?php } ?>	
				</select>
				<input type="submit" value="搜索" class="input2" />
			</form>
		</div>
		<div class="clear"></div>
	</div>
	<form method="post" id="form">
	<table width="100%" border="0" cellspacing="0" cellpadding="0" class="list">
	<tr>
		<td class="bgtt" width="10"><input type="checkbox" name="checkall" onclick="bro_checkall(this, 'id')" /></td>
		<td class="bgtt" width="50">ID号</td>
		<td class="bgtt">文章名称</td>
		<td class="bgtt" width="100">文章分类</td>
		<td class="bgtt" width="100">发布日期</td>
		<td class="bgtt" width="80">浏览量</td>
		<td class="bgtt" width="88">操作</td>
	</tr>
	<?php  $_smarty_tpl->tpl_vars['v'] = new Smarty_Variable; $_smarty_tpl->tpl_vars['v']->_loop = false;
 $_from = $_smarty_tpl->tpl_vars['data']->value; if (!is_array($_from) && !is_object($_from)) { settype($_from, 'array');}
foreach ($_from as $_smarty_tpl->tpl_vars['v']->key => $_smarty_tpl->tpl_vars['v']->value){
$_smarty_tpl->tpl_vars['v']->_loop = true;
?>
	<tr>
		<td><input type="checkbox" name="id[]" value="<?php echo $_smarty_tpl->tpl_vars['v']->value['id'];?>
"></td>
		<td><?php echo $_smarty_tpl->tpl_vars['v']->value['id'];?>
</td>
		<td class="aleft"><a href="<?php echo $_smarty_tpl->tpl_vars['root']->value;?>
/index.php?m=article&a=index&id=<?php echo $_smarty_tpl->tpl_vars['v']->value['id'];?>
" target="_blank"><?php echo $_smarty_tpl->tpl_vars['v']->value['name'];?>
</a></td>
		<td><?php echo $_smarty_tpl->tpl_vars['fcat']->value[$_smarty_tpl->tpl_vars['v']->value['cid']];?>
</td>
		<td><?php echo smarty_modifier_date_format($_smarty_tpl->tpl_vars['v']->value['atime'],'%Y-%m-%d');?>
</td>
		<td><?php echo $_smarty_tpl->tpl_vars['v']->value['clicknum'];?>
</td>
		<td>
			<a href="<?php echo $_smarty_tpl->tpl_vars['url']->value;?>
&a=mod&id=<?php echo $_smarty_tpl->tpl_vars['v']->value['id'];?>
" class="admin_edit mar3">修改</a>
			<a href="<?php echo $_smarty_tpl->tpl_vars['url']->value;?>
&a=del&id=<?php echo $_smarty_tpl->tpl_vars['v']->value['id'];?>
" class="admin_del" onclick="return confirm('你确定要删除吗?')">删除</a>
		</td>
	</tr>
	<?php } ?>
	
	<tr>
		<td class="bgtt"><input type="checkbox" name="checkall" onclick="bro_checkall(this, 'id')" /></td>
		<td class="bgtt aleft" colspan="6">
			<span class="fl"><button href="<?php echo $_smarty_tpl->tpl_vars['url']->value;?>
&a=del" onclick="return bro_cfall(this, 'id', 'form', '批量删除')">批量删除</button></span>
			<?php echo $_smarty_tpl->tpl_vars['fpage']->value;?>

		</td>
	</tr>
	</table>
	</form>
</div>
<script type="text/javascript"> 
$(function(){

	$("select").change(function(){
		window.location = '<?php echo $_smarty_tpl->tpl_vars['url']->value;?>
&a=index&'+$(this).attr('name')+"="+$(this).find("option:selected").val();
	})
})
</script>

<?php echo $_smarty_tpl->getSubTemplate ("public/footer.html", $_smarty_tpl->cache_id, $_smarty_tpl->compile_id, null, null, array(), 0);?>



<?php }} ?>